<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>已用优惠券</title>
<%@ include file="/page/pc/include.jsp"%>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/statics/css/public.css" />
<style type="text/css">
	.box24 .item_1 h2 em{font-size:16px;font-style:normal;font-weight:400;font-family:Verdana, Geneva, sans-serif;margin-left:5px;display:inline-block;vertical-align:top;margin-top:24px}
</style>
</head>
<body>
	<div class="wrap">
		<jsp:include page="../_my_header.jsp" />
		<div class="site_wrap18">
			<div class="site_wrap18_con">
				<div class="main">
					<jsp:include page="../_my_left.jsp" />
					<div class="rightitem">
						<div class="yhq_part">
							<div class="hd">
								<h3>优惠券</h3>
							</div>
							<div class="bd">
								<div class="yhq_part1">
									<div class="yhq_nav">
										<ul>
											<li><a href="<%=basePath%>/pc/my/couponGet">可用优惠券<i></i></a></li>
											<li><a href="<%=basePath%>/pc/my/couponExp">过期优惠券<i></i></a></li>
											<li class="current"><a href="#">已用优惠券<i></i></a></li>
										</ul>
									</div>

									<%-- 可用优惠券 开始 --%>
									<div class="yhq_con">
										<div class="yhq_list2">
											<c:choose>
												<c:when test="${empty couponUsedList }">
													<div class="noresult" style="text-align: center;height:245px;">
														<p>
															<i><img src="<%=basePath%>/statics_wx/images/icon_nomoney.png" style="height:100px;width:100px;" /></i> 
															<br>
															<br>
															<br>
															<span>你没有已用的优惠券~</span>
														</p>
													</div>
												</c:when>
												<c:otherwise>
													<form action="<%=basePath%>/pc/my/couponUsed" id="couponUsedForm" name="couponUsedForm" method="post">
														<ul>
															<c:forEach items="${couponUsedList }" var="couponUsed">
																<li>
																	<div class="box24">
																		<div class="pic">
																			<div class="item_1">
																				<h2>
																					<span><fmt:formatNumber type="number" value="${couponUsed.couponAmount }" pattern="0" maxFractionDigits="2" /></span><em>¥</em>
																				</h2>
																				<p>
																					满
																					<fmt:formatNumber type="number" value="${couponUsed.conditionAmount }" pattern="0" maxFractionDigits="2" />
																					元可用
																				</p>
																			</div>
																		</div>
																		<div class="item-info">
																			<h2>限品类：全品类</h2>
																			<h3>
																				有效期：
																				<fmt:formatDate value="${couponUsed.beginTime }" type="date" />
																				~
																				<fmt:formatDate value="${couponUsed.endTime }" type="date" />
																			</h3>
																			<h4>
																				<img src="<%=basePath%>/statics/images/icon_ysy.png" />
																			</h4>
																		</div>
																	</div>
																</li>
															</c:forEach>
														</ul>
														<jx:paging formID="couponUsedForm" isShowJumpToButton="true" numPerPage="8" isShowpageCount="true"></jx:paging>
													</form>
												</c:otherwise>
											</c:choose>
										</div>
									</div>
									<%-- 可用优惠券 结束--%>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div>
		<!---网站底部开始-->
		<jsp:include page="../../footer.jsp?showQaFlag=0" />
		<!---网站底部结束-->
	</div>
</body>
</html>
